﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
        .draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:Panel ID="DraggablePanel" runat="server" CssClass="draggable ui-widget-content">
        <p>
            I will always stick to the center (relative to the mouse)</p>
    </asp:Panel>
    <asp:Panel ID="DraggablePanel2" runat="server" CssClass="draggable ui-widget-content">
        <p>
            My cursor is at left -5 and top -5</p>
    </asp:Panel>
    <asp:Panel ID="DraggablePanel3" runat="server" CssClass="ui-widget-content draggable">
        <p>
            My cursor position is only controlled for the 'bottom' value</p>
    </asp:Panel>
    <DotNetAge:Draggable ID="Draggable1" runat="server" Cursor="move">
        <Target TargetID="DraggablePanel" />
        <CursorPosition Left="56" Top="56" />
    </DotNetAge:Draggable>
    <DotNetAge:Draggable ID="Draggable2" runat="server" Cursor="crosshair">
        <Target TargetID="DraggablePanel2" />
        <CursorPosition Left="-5" Top="-5" />
    </DotNetAge:Draggable>
    <DotNetAge:Draggable ID="Draggable3" runat="server">
        <Target TargetID="DraggablePanel3" />
        <CursorPosition Bottom="0" />
    </DotNetAge:Draggable>
    </form>
</body>
</html>
